package com.itheima.edu.info.manager.day9;

import java.util.TreeSet;

public class TestTrees {
    public static void main(String[] args) {
        TreeSet<Trees> ts = new TreeSet<>();
        Trees t = new Trees(50, 80, 40);
        Trees t1 = new Trees(80, 60, 20);
        Trees t2 = new Trees(90, 30, 60);
        ts.add(t);
        ts.add(t1);
        ts.add(t2);
//        System.out.println(ts);
//        System.out.println();
        for (Trees trees : ts) {
            System.out.println(trees);
        }
    }
}
